/**
 * 滚动显示信息的屏幕
 */

#ifndef __G_SCROLLED_WINDOW
#define __G_SCROLLED_WINDOW

#include "GWidget.h"

typedef struct _GScrolledWindow GScrolledWindow;
#define G_SCROLLED_WINDOW(any) ((GScrolledWindow *)(any))

extern GWidget *g_scrolled_window_new(void);

/**
 * @brief 设置是否自动渲染 GScrolledWindow
 */
extern void g_scrolled_window_set_auto_render(GScrolledWindow *self,
                                              bool will_auto_render);

/**
 * @brief 向滚动屏幕添加一条信息
 */
extern void g_scrolled_window_add_text(GScrolledWindow     *self,
                                       const unsigned char *text);

#endif
